Environment Deployment

To facilitate secondary development for users, SuperMap iDesktopX provides an extension development example project template called SampleCode. You only need to install JDK and a development tool on your computer and perform simple configuration on the project template to start extension development based on SampleCode.

Software Installation

For extension development based on SuperMap iDesktopX, you need to install the Java development tool JDK 1.8 or JDK 17 on your computer. It is recommended to use IDEA as the development tool, and the suggested version of IDEA is 2020.2.2 or later.

Development Project Configuration

After installing IDEA, you need to open the extension development project template SampleCode and configure it. The detailed instructions are as follows:

  1. Open the Template Project: IDEA -> File -> Open -> Select the SuperMap iDesktopX product package\templates\SampleCode directory to open the extension development example template project.

  2. Set Environment: Set the Project's JDK environment to 1.8/17. The method is: File -> Project Structure -> Project -> Project SDK -> Select 1.8/17 from the drop-down list.

  3. Add Desktop Dependencies: In the dialog box from step 2, select Global Libraries -> Add -> JAVA in sequence. In the pop-up Select Library Files dialog box, select the following 6 directories simultaneously, click the OK button, and then select 'develop' to add the desktop dependencies to the secondary development plugin.
    • %SuperMap iDesktopX product package%/bin/
    • %SuperMap iDesktopX product package%/bundles/idesktop_bundles/
    • %SuperMap iDesktopX product package%/bundles/require_bundles/
    • %SuperMap iDesktopX product package%/lib/
    • %SuperMap iDesktopX product package%/lib/jars
    • %SuperMap iDesktopX product package%/support/batJars/bdt-all-runtime.jar

  4. Select the Corresponding Startup Configuration for the JDK Environment: If the JDK environment is 1.8, select MyStartUp as the startup configuration; if the JDK environment is 17, select MyStartUp_JDK17.

  5. Compile: Click the Run or Debug button on the toolbar. After compilation, SuperMap iDesktopX will start automatically. After startup, a secondary development group will be added to the "Home" tab in the Ribbon, containing two function buttons: secondary development sample and delete duplicate points. At this point, it indicates that the environment configuration is successful, and you can proceed with extension development based on SuperMap iDesktopX. Note: If SuperMap iDesktopX does not start automatically, it is recommended to update the IDEA version to 2020.2.2 or later.

Related Topics

Project Template

Plugin Configuration Overview

Interface Configuration

Ribbon Configuration

Start Menu

Configure Statusbar

Configure Context Menu

Configure Dock Bars

Attributes